<?php

namespace App\Models\Article;

use App\User;
use Illuminate\Database\Eloquent\Model;

/**
 * Class Comment
 * @package App\Models\Article
 * @mixin \Eloquent
 */
class Comment extends Model
{
    protected $table = 'comment';
    protected $guarded = [];

    public function user()
    {
        return $this->belongsTo(User::class);
    }

    public function post()
    {
        return $this->belongsTo(Post::class);
    }
}
